import type { App } from "vue";
import xtMenu from "./xt-menu/index.vue";
import xtScrollbar from "./xt-scrollbar/index.vue";
import xtIcon from "./xt-icon/index.vue";
import xtAvatar from "./xt-avatar/index.vue";
import xtDropdown from "./xt-dropdown/index.vue";
import xtInput from "./xt-input/index.vue";
import xtBreadcrumb from "./xt-breadcrumb/index.vue";
import xtDialog from "./xt-dialog/index.vue";
import xtButton from "./xt-button/index.vue";
import xtLink from "./xt-link/index.vue";
import xtPagination from "./xt-pagination/index.vue";
import xtTree from "./xt-tree/index.vue";

export default {
  install(app: App) {
    app.component(xtMenu.name as string, xtMenu);
    app.component(xtScrollbar.name as string, xtScrollbar);
    app.component(xtIcon.name as string, xtIcon);
    app.component(xtAvatar.name as string, xtAvatar);
    app.component(xtDropdown.name as string, xtDropdown);
    app.component(xtInput.name as string, xtInput);
    app.component(xtBreadcrumb.name as string, xtBreadcrumb);
    app.component(xtDialog.name as string, xtDialog);
    app.component(xtButton.name as string, xtButton);
    app.component(xtLink.name as string, xtLink);
    app.component(xtPagination.name as string, xtPagination);
    app.component(xtTree.name as string, xtTree);
  },
};
